<template>
  <ul>
    <li v-for="item in data">{{ item }}</li>
  </ul>
</template>

<script>
import { ref, setup } from "vue";
export default {
  props: {
    mess: {
      type: String,
      default() {
        return "";
      },
    },
  },
  setup(props) {
    // props 就是外面props
    console.log(props);
    const data = ref([1, 2, 3, 4]);
    return {
      data,
    };
  },
};
</script>

<style></style>
